/* 小程序基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f6f7f9;
    color: #333;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
}

.app-container {
    max-width: 414px;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* 导航栏样式 */
.navbar {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    background-color: #1989fa;
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

.navbar-btn {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 底部标签栏样式 */
.tabbar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 44px;
    background-color: #ffffff;
    border-top: 1px solid #ebedf0;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 414px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: #7d7e80;
    font-size: 12px;
}

.tab-item.active {
    color: #1989fa;
}

.tab-item i {
    font-size: 20px;
    margin-bottom: 3px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin: 8px 15px;
    overflow: hidden;
}

.card-title {
    font-size: 14px;
    font-weight: 500;
    padding: 10px 15px;
    border-bottom: 1px solid #ebedf0;
}

.card-content {
    padding: 10px 15px;
}

/* 股票项样式 */
.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #ebedf0;
}

.stock-info {
    flex: 1;
}

.stock-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.stock-code {
    font-size: 13px;
    color: #7d7e80;
}

.stock-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.current-price {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.price-change {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.price-up {
    background-color: #f5433e;
    color: white;
}

.price-down {
    background-color: #00a651;
    color: white;
}

/* 按钮样式 */
.btn {
    border: none;
    border-radius: 6px;
    font-size: 13px;
    padding: 7px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-primary {
    background-color: rgba(25, 137, 250, 0.1);
    color: #1989fa;
}

.btn-primary:active {
    background-color: rgba(25, 137, 250, 0.2);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.05);
    color: #666;
}

.btn-secondary:active {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-item {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    color: #646566;
}

.form-input {
    width: 100%;
    height: 40px;
    border: 1px solid #dcdee0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 14px;
}

/* 搜索框样式 */
.search-bar {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 0 10px;
    background-color: #f7f8fa;
    border-radius: 18px;
    margin: 10px 15px;
}

.search-bar i {
    color: #969799;
    margin-right: 5px;
}

.search-input {
    flex: 1;
    border: none;
    background-color: transparent;
    font-size: 14px;
    outline: none;
}

/* 主内容区域 */
.content {
    padding-bottom: 60px; /* 为底部标签栏留出空间 */
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    color: #969799;
}

/* 空状态 */
.empty {
    text-align: center;
    padding: 40px 0;
    color: #969799;
}

.empty i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 4px;
    margin-right: 5px;
}

.tag-blue {
    background-color: #e8f4ff;
    color: #1989fa;
}

.tag-red {
    background-color: #ffece8;
    color: #f5433e;
}

.tag-green {
    background-color: #e8f7ed;
    color: #00a651;
}

/* 股票详情页样式 */
.stock-header {
    padding: 20px 15px;
    background-color: #1989fa;
    color: white;
}

.stock-detail-price {
    font-size: 28px;
    font-weight: 600;
    margin: 10px 0;
}

.stock-detail-change {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    background-color: rgba(255, 255, 255, 0.2);
}

.stock-detail-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.stock-detail-item {
    flex: 1;
    text-align: center;
}

.stock-detail-label {
    font-size: 12px;
    opacity: 0.8;
}

.stock-detail-value {
    font-size: 14px;
    margin-top: 5px;
}

/* 推荐股票样式 */
.recommendation-header {
    background-color: #f5433e;
    color: white;
    padding: 20px 15px;
    text-align: center;
}

.recommendation-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.recommendation-subtitle {
    font-size: 14px;
    opacity: 0.8;
}

/* 个人中心样式 */
.profile-header {
    padding: 12px 15px;
    background-color: #1989fa;
    color: white;
    text-align: center;
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    margin: 0 auto 6px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar i {
    font-size: 26px;
    color: #1989fa;
}

.username {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 1px;
}

/* 设置列表样式 */
.settings-list {
    margin: 15px 0;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fff;
    border-bottom: 1px solid #ebedf0;
}

.settings-item-title {
    font-size: 15px;
}

.settings-item-right {
    color: #969799;
}

/* MD文本内容样式 */
.md-content {
    padding: 15px;
    line-height: 1.6;
}

.md-content h1, .md-content h2, .md-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.md-content p {
    margin: 10px 0;
}

.md-content ul, .md-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

/* 指标展示 */
.indicators {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.indicator-item {
    width: 50%;
    padding: 5px;
    box-sizing: border-box;
}

.indicator-card {
    background-color: #f7f8fa;
    border-radius: 6px;
    padding: 10px;
}

.indicator-label {
    font-size: 12px;
    color: #646566;
    margin-bottom: 5px;
}

.indicator-value {
    font-size: 16px;
    font-weight: 500;
} 